* lisp/emacs-lisp/comp-cstr.el (comp-cstr-fixnum-p): Fix.
authorAndrea Corallo <acorallo@gnu.org>
Wed, 10 Apr 2024 15:35:08 +0000 (17:35 +0200)
committerAndrea Corallo <acorallo@gnu.org>
Wed, 10 Apr 2024 16:16:26 +0000 (18:16 +0200)
lisp/emacs-lisp/comp-cstr.el

index d6cb887759fce6e06a1ac57f2a83524dc3cf80ea..7452b8568dedfa26ba66856712ea91f4148c4d37 100644 (file)
@@ -912,7 +912,9 @@ Non memoized version of `comp-cstr-intersection-no-mem'."
 (defun comp-cstr-fixnum-p (cstr)
   "Return t if CSTR is certainly a fixnum."
   (with-comp-cstr-accessors
-    (when (null (neg cstr))
+    (when (and (null (neg cstr))
+               (null (valset cstr))
+               (null (typeset cstr)))
       (when-let (range (range cstr))
         (let* ((low (caar range))
                (high (cdar (last range))))